// frame.setSize(wide, high);
setFrameSize(); //wide, high);
setCanvasSize();
frame.setLocationRelativeTo(null);
// if (frame != null) {
// frame.setLocationRelativeTo(null);
// }
// canvas.setSize(wide, high);
// frame.setSize(wide, high);
if (frame != null) {
frame.setLocationRelativeTo(null);
}
setCanvasSize();